package com.xqledu.admin.utils;

import java.util.UUID;

/**
 * @author 向其林
 * @version 1.0
 * @description: TODO
 * @date 2023/7/6 0006 20:51
 */
public class UUIDUtils {
    public static String generate18BitUUID() {
        String uuid = UUID.randomUUID().toString().replace("-", "");
        return uuid.substring(0, 18);
    }

    public static void main(String[] args) {
        String uuid = generate18BitUUID();
        System.out.println(uuid);
    }
}
